<?php
$section = "testimonial";
$titre = _LB_TESTIMONIAL;
$link = $section;
Session::setBackLink($link);
//create cfer


$page = new Static_Page();
$page->query("SELECT * FROM STATIC_PAGE WHERE CODE = 'testimonial_welcome'");
$page->fetch();

$testimonial = new Testimonial();
    
$query = "SELECT * FROM TESTIMONIAL WHERE STATUS = 1 ORDER BY POS ASC";

$args = array();
$pager = new  DBPager($testimonial,$args, false ,10,$query);
$testimonial->query($query);
$cfer = new Cfer(array(
	_LB_HOME =>  APPLICATION_URL_FO."/",
    _LB_PRESS => APPLICATION_URL_FO."/testimonial/"
));
Session::setBackCfer($link, $cfer->getCferArray());
$smarty->assign('cfer', $cfer);
$smarty->assign('id', $id);
$smarty->assign('testimonial', $testimonial);
$smarty->assign('titre', $titre);
$smarty->assign('pager', $pager);
$smarty->assign('page', $page);
$smarty->assign('META_TAG_KEYWORD', ($page->META_KEYWORD == ""? META_TAG_KEYWORD: $page->META_KEYWORD));
$smarty->assign('META_TAG_DESCRIPTION', ($page->META_DESCRIPTION == ""? META_TAG_DESCRIPTION: $page->META_DESCRIPTION));

$smarty->display("testimonial.html");
?>
